Imports System
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports AjaxControlToolkit

#Region "Assembly Resource Attribute"
<Assembly: System.Web.UI.WebResource("InlineEdit.InlineEditBehavior.js", "text/javascript")> 
#End Region

Namespace InlineEdit

    <Designer(GetType(InlineEditDesigner))> _
    <ClientScriptResource("InlineEdit.InlineEditBehavior", "InlineEdit.InlineEditBehavior.js")> _
    <TargetControlType(GetType(Control))> _
    Public Class InlineEditExtender
        Inherits ExtenderControlBase

        ' TODO: Add your property accessors here.
        <Description("The label to click on.")> _
        <ExtenderControlProperty()> _
        <RequiredProperty()> _
        <DefaultValue("")> _
        <IDReferenceProperty(GetType(Label))> _
        Public Property LabelControlID() As String
            Get
                Return GetPropertyValue("LabelControlID", "")
            End Get
            Set(ByVal value As String)
                SetPropertyValue("LabelControlID", value)
            End Set
        End Property

        <Description("CSS class applied to the label on mouseover.")> _
        <ExtenderControlProperty()> _
        <DefaultValue("")> _
        Public Property LabelHoverCssClass() As String
            Get
                Return GetPropertyValue("LabelHoverCssClass", "")
            End Get
            Set(ByVal value As String)
                SetPropertyValue("LabelHoverCssClass", value)
            End Set
        End Property

        <Description("CSS class applied to the label normally.")> _
        <ExtenderControlProperty()> _
        <DefaultValue("")> _
        Public Property LabelNormalCssClass() As String
            Get
                Return GetPropertyValue("LabelNormalCssClass", "")
            End Get
            Set(ByVal value As String)
                SetPropertyValue("LabelNormalCssClass", value)
            End Set
        End Property

        <Description("CSS class applied to the dropdown.")> _
        <ExtenderControlProperty()> _
        <DefaultValue("")> _
        Public Property TargetCssClass() As String
            Get
                Return GetPropertyValue("TargetCssClass", "")
            End Get
            Set(ByVal value As String)
                SetPropertyValue("TargetCssClass", value)
            End Set
        End Property

        <Description("Client script to run when the SelectedIndex is changed for a dropdown or the value is changed for a textbox.")> _
        <ExtenderControlProperty()> _
        <DefaultValue("")> _
        Public Property OnClientTargetValueChanged() As String
            Get
                Return GetPropertyValue("OnClientTargetValueChanged", "")
            End Get
            Set(ByVal value As String)
                SetPropertyValue("OnClientTargetValueChanged", value)
            End Set
        End Property

    End Class

End Namespace
